﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/default.master" AutoEventWireup="true" CodeFile="CategoryEdit.aspx.cs" Inherits="Administrator_CategoryEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
Thêm/Sửa Danh mục
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1>
        Thêm/Sửa danh mục</h1>
    <table style="width:100%">
            <tr>
                <td style="height: 17px">
                    &nbsp;</td>
                <td style="height: 17px">
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        SelectMethod="GetParent" TypeName="BusinessLayer.Category">
                    </asp:ObjectDataSource>
                </td>
            </tr>
            <tr>
                <td style="height: 17px">
                    Mã danh mục :</td>
                <td style="height: 17px">
                    <asp:TextBox ID="txtMaDM" runat="server" Width="267px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="height: 17px">
                    &nbsp;</td>
                <td style="height: 17px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="height: 17px">
                    &nbsp;Danh mục cha :</td>
                <td style="height: 17px">
                    <asp:DropDownList ID="DropDownList1" runat="server" 
                        DataSourceID="ObjectDataSource1" DataTextField="Categoroy_Name" 
                        DataValueField="Category_ID" Height="22px" Width="271px">
                    </asp:DropDownList>
                    </td>
            </tr>
            <tr>
                <td style="height: 17px">
                    &nbsp;</td>
                <td style="height: 17px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Tên danh mục :</td>
                <td>
                    <asp:TextBox ID="txtTen" runat="server" 
                        Width="281px" Height="22px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="height: 19px">
                    </td>
                <td style="height: 19px">
                    </td>
            </tr>
            <tr>
                <td>
                    Mô tả :</td>
                <td>
                    <asp:TextBox ID="txtMota" runat="server" Width="279px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Trạng thái :</td>
                <td>
                    <asp:RadioButtonList ID="rbStatus" runat="server">
                        <asp:ListItem Value="10">Deleted</asp:ListItem>
                        <asp:ListItem Value="0" Selected="True">Used</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnNew" runat="server" Text="New" onclick="btnNew_Click" 
                        Width="73px" />
                    <asp:Button ID="btnUpdate" runat="server" Text="Update" 
                        onclick="btnUpdate_Click" Width="76px" />
                </td>
                <td align="right">
                    <asp:Button ID="BbtnBack" runat="server" Text="Back to List" 
                        onclick="BbtnBack_Click" />
                </td>
            </tr>
        </table>
</asp:Content>

